package com.scut.fy.admin.model.vo;

import cn.hutool.core.lang.tree.TreeNode;
import io.swagger.annotations.ApiModelProperty;

import java.util.ArrayList;
import java.util.List;

/**
 * @author JY
 * @version 1.0
 * @date 2021/8/13 11:28
 */
public class GroupVo extends TreeNode {
    @ApiModelProperty(value = "组织ID",required=true)
    private Long groupId;

    @ApiModelProperty(value = "组织名",required=true)
    private String groupName;

    @ApiModelProperty(value = "组织状态",required=true, notes = "状态:0正常,1停用")
    private String status;
    @ApiModelProperty(value = "子组织")
    private List<GroupVo> children = new ArrayList<GroupVo>();

    public GroupVo() {
        super();
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public List<GroupVo> getChildren() {
        return children;
    }

    public void setChildren(List<GroupVo> children) {
        this.children = children;
    }

    public void addChild(GroupVo child) {
        children.add(child);
    }
}
